package classroom;

/**
 * @author yicixingchen
 * @version 1.0
 * Create by 2022/10/18 10:20
 */

public class work4 {
    public static void main(String[] args) {
        int n = 5;
        double p = 0.0;
        int x = 5;
        long power;
        int[] a = {1,1,1,1,1};
        for (int i = n; i > 0; i--) {
            power = 1;
            for (int j = 0; j < i; j++) {
                power *= x;
            }
            p = p + a[i - 1] * power;
        }

    }
}
